/**
 * 此代码归 xxx 版本所有，未经同意，严禁复制和转发
 */
package com.tz.fruit.util;

public class ArrayUtil {
	
	/*****
	 * 把字符串数组按字符delim 拼接成字符串
	 * @param arr
	 * @param delim 拼接符
	 */
	public static String join(String[] arr,char delim) {
		StringBuilder builder = new StringBuilder();
		for (int i = 0; i < arr.length; i++) {
			builder.append(arr[i]);
			if(i != arr.length - 1) {
				builder.append(delim);
			}
		}
		return builder.toString();
	}
}
